home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
271_02
/
exit2dos.doc
< prev
next >
Wrap
Text File
|
1987-08-18
|
801b
|
39 lines
NAME
exit2dos -- permission to exit program
SYNOPSIS
void exit2dos();
DESCRIPTION
When invoked, this function clears the screen and places
the message "Exit to DOS?" in the center of the display.
The keyboard is read, and if the response is 'Y' or 'y',
an aabort(0) function is called. For any other response,
the function simply returns to the users program, which
must then do whatever is necessary to continue with the
program.
EXAMPLE
if(getche() == ESC) exit2dos(); /* watch for ESCape key */
else domorework();
This function is found in SMTCx.LIB for the Turbo-C Compiler